package com.douyin.service;

import com.douyin.entity.Video;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface VideoService {
    // 查所有

    List<Video> selectAllVideos();

    // 根据id查一个
    Video selectVideoById(int id);

    // 根据id删一个
    Boolean deleteVideoById(int id);

    // 添加一个
    Boolean insertOneVideo(Video video);


    // 修改一个
    Boolean updateOneVideo(Video video);
}
